package com.wx.commons.constant;

import com.baomidou.mybatisplus.extension.api.IErrorCode;

public enum ErrorCodeEnum implements IErrorCode {

    FILE_SAVE_EXCEPTION(1001L, "文件保存失败");

    private long code;

    private String msg;

    ErrorCodeEnum(Long code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
